//
//  CAIEmptyViewGlobalConfig.h
//  MobileCaiLocal
//
//  Created by 海参 on 2022/5/6.
//  Copyright © 2022 com.Chs. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "EmptyCustomCenterButtonAppearance.h"
#import "EmptyTextLabelAppearance.h"

NS_ASSUME_NONNULL_BEGIN

@interface CAIEmptyViewGlobalConfig : NSObject

+ (instancetype)sharedInstance;


/// 自定义按钮外观配置
@property (nonatomic, strong) EmptyCustomCenterButtonAppearance *customButtonAppearance;

/// 文本label外观配置
@property (nonatomic, strong) EmptyTextLabelAppearance *textAppearance;

@property (nonatomic, strong) UIImage *failedImage;


/// @"加载失败，点击屏幕重新加载"
@property (nonatomic, strong) NSString *failedTitle;

//@property (nonatomic, strong) NSAttributedString *failedAttributedTitle;

/// 是否点击错误视图空白区域事件回调；默认YES；
@property (nonatomic, assign) BOOL emptyErrorViewTouchEvent;

/// 是否展示重新加载按钮；默认NO，用点击空白区域事件；
@property (nonatomic, assign) BOOL showEmptyErrorViewReloadButton;

/// 自定义点击“查看解决方案”按钮回调
@property (nonatomic, copy) void (^lookErrorSolutionActionBlock)(void) ;

/// 自定义“查看解决方案”--网络错误帮助的本地文件地址
@property (nonatomic, copy) NSString *networkErrorHelpHtmlPath;


@end

NS_ASSUME_NONNULL_END
